home *** CD-ROM | disk | FTP | other *** search
Text File | 1988-06-22 | 467 b | 31 lines | [TEXT/MPS ] |
- Program Ext_GetButton;
-
- Uses MemTypes, QuickDraw, OSIntf,
- ToolIntf, PackIntf;
-
- Type
- MyData = record
- Status:Integer;
- end;
- MyDataPtr = ^ MyData;
- MyDataHndl = ^MyDataPtr;
-
- Var
- Areahnd:MyDataHndl;
- Result:Integer;
-
- procedure GetButton(
- var AreaHndl:MyDataHndl;
- var Result:Integer);
-
- begin
- {Result returns Status}
- Result:=AreaHndl^^.Status;
- {Set Status to Not Clicked}
- AreaHndl^^.Status:=0;
- end; {GetButton}
-
- Begin
- GetButton(AreaHnd, Result);
- End.
-